wayland: Set type for GtkSelectionData for incoming contents
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 24 Aug 2013 06:13:01 +0000 (23:13 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 24 Aug 2013 06:15:54 +0000 (23:15 -0700)
This is set from the incoming property type under X11.  Under Wayland
it will always be what we requested, so we can just set it to the target.

gtk/gtkclipboard-wayland.c

index 8f6012e1931ab933330f2bff11bc04cd13a7d9ad..ab63a0ccb72bddde05c41776c0fa4dd4c0d4c955 100644 (file)
@@ -247,6 +247,7 @@ _request_generic_cb (GdkDevice   *device,
 
   selection_data.selection = GDK_SELECTION_CLIPBOARD;
   selection_data.target = closure->target;
+  selection_data.type = closure->target;
   selection_data.length = len;
   selection_data.data = (guchar *)data;